<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/WEB-INF/include/common_tag.jsp" %>
<div class="panel panel-default">
	<div class="panel-heading">
		<h3 class="panel-title">新增报修</h3>
	</div>
	<div class="panel-body">
		<form:form cssClass="form-horizontal" role="form" id="form">
			<div class="form-group">
				<input type="hidden" id="id" name="id" value="${repairV.id}"/>
				<label for="username" class="col-xs-12 col-sm-3 control-label no-padding-right">机器序列号:</label>
				<div class="col-xs-12 col-sm-4">
					<input type="text" id="serialNumber" name="serialNumber"  class="width-100" value="${repairV.serialNumber}" required=true  maxLength="20" />
					<span class="required">*</span>
				</div>
			</div>
			<div class="space-4"></div>
			<div class="form-group">
				<label for="address" class="col-xs-12 col-sm-3 control-label no-padding-right">故障信息:</label>
				<div class="col-xs-12 col-sm-4">
					<input type="text" id="faultInfo" name="faultInfo"  class="width-100" value="${repairV.faultInfo}" required=true  maxLength="200" />
					<span class="required">*</span>
				</div>
			</div>
			<div class="space-4"></div>
			<div class="form-group">
				<label for="bankUser" class="col-xs-12 col-sm-3 control-label no-padding-right">报修人:</label>
				<div class="col-xs-12 col-sm-4">
					<input type="text" id="bankUser" name="bankUser" class="width-100" value="${repairV.bankUser}" required=true  maxLength="20" />
					<span class="required">*</span>
				</div>

			</div>
			<div class="space-4"></div>
			<div class="form-group">
				<label for="bankUserPhone" class="col-xs-12 col-sm-3 control-label no-padding-right">报修人手机号码:</label>
				<div class="col-xs-12 col-sm-4">
					<input type="text" id="bankUserPhone" name="bankUserPhone" class="width-100" value="${repairV.bankUserPhone}"  required=true  maxLength="20"  data-type="MobilePhone"/>
					<span class="required">*</span>
				</div>
			</div>
			<div class="space-4"></div>
			<div class="form-group">
				<label for="maintenanceUser" class="col-xs-12 col-sm-3 control-label no-padding-right">维修人:</label>
				<div class="col-xs-12 col-sm-4">
					<input type="text" id="maintenanceUser" name="maintenanceUser" class="width-100" value="${repairV.maintenanceUser}"  required=true  maxLength="20" />
					<span class="required">*</span>
				</div>
			</div>
			<div class="space-4"></div>
			<div class="form-group">
				<label for="maintenancePhone" class="col-xs-12 col-sm-3 control-label no-padding-right">维修人手机号码:</label>
				<div class="col-xs-12 col-sm-4">
					<input type="text" id="maintenancePhone" name="maintenancePhone" class="width-100" value="${repairV.maintenancePhone}"  required=true  maxLength="20"  data-type="MobilePhone"/>
					<span class="required">*</span>
				</div>
			</div>
			<div class="space-4"></div>
			<div class="form-group">
				<label for="contact" class="col-xs-12 col-sm-3 control-label no-padding-right">联系人:</label>
				<div class="col-xs-12 col-sm-4">
					<input type="text" id="contact" name="contact" class="width-100" value="${repairV.contact}"  required=true  maxLength="20" />
					<span class="required">*</span>
				</div>
			</div>
			<div class="space-4"></div>
			<div class="form-group">
				<label for="contactPhone" class="col-xs-12 col-sm-3 control-label no-padding-right">联系人手机号码:</label>
				<div class="col-xs-12 col-sm-4">
					<input type="text" id="contactPhone" name="contactPhone" class="width-100" value="${repairV.contactPhone}"  required=true  maxLength="20"  data-type="MobilePhone"/>
					<span class="required">*</span>
				</div>
			</div>
			<div class="space-4"></div>
			<div class="form-group">
				<label for="machineAddress" class="col-xs-12 col-sm-3 control-label no-padding-right">机器地址:</label>
				<div class="col-xs-12 col-sm-4">
					<input type="text" id="machineAddress" name="machineAddress" class="width-100" value="${repairV.machineAddress}"  required=true  maxLength="200"  />
					<span class="required">*</span>
				</div>
			</div>
			<div class="space-4" ></div>
			<div class="form-group" >
				<label for="address" class="col-xs-12 col-sm-3 control-label no-padding-right">报修时间:</label>
				<div class="col-xs-12 col-sm-4">
					<input class="form-control" id="repairDateStr" name="repairDateStr" type="text" value="${repairV.repairDateStr}"/>
				</div>
			</div>
			<div class="space-4" ></div>
			<div class="form-group" >
				<label for="address" class="col-xs-12 col-sm-3 control-label no-padding-right">维修开始时间:</label>
				<div class="col-xs-12 col-sm-4">
					<input class="form-control" id="maintenanceTimeStartStr" name="maintenanceTimeStartStr" type="text" value="${repairV.maintenanceTimeStartStr}"/>
				</div>
			</div>
			<div class="space-4"></div>
			<div class="form-group" >
				<label for="address" class="col-xs-12 col-sm-3 control-label no-padding-right">完成时间:</label>
				<div class="col-xs-12 col-sm-4">
					<input class="form-control" id="maintenanceTimeEndStr" name="maintenanceTimeEndStr" type="text" value="${repairV.maintenanceTimeEndStr}"/>
				</div>

			</div>
			<div class="space-4" ></div>
			<div class="form-group" >
				<label for="address" class="col-xs-12 col-sm-3 control-label no-padding-right">状态:</label>
				<div class="col-xs-12 col-sm-4">
					<select id="status" data-value="${repairV.status}">
						<option value="0">未派发</option>
						<option value="1">已派发</option>
						<option value="2">已确认</option>
						<option value="3">维修中</option>
						<option value="4">已完成</option>
						<option value="5">已评价</option>
						<option value="6">反馈</option>
						<option value="7">已删除</option>
					</select>
				</div>

			</div>
			<div class="space-4"></div>
			<div class="form-group" >
				<label for="address" class="col-xs-12 col-sm-3 control-label no-padding-right">维护备注信息:</label>
				<div class="col-xs-12 col-sm-4">
					<textarea class="form-control" rows="5">
						${repairV.maintenanceRemark}
					</textarea>
				</div>

			</div>
			<div class="space-12"></div>
			<div class="form-group" style="text-align: center;">
				<div class="col-sm-9">
					<button id="returnBtn" type="button" class="btn btn-default btn-sm no-border">
						<i class="fa fa-undo"></i>返回
					</button>
					<button id="saveBtn" type="button" class="btn btn-success btn-sm no-border">
						<i class="fa fa-check"></i>提交
					</button>
				</div>
			</div>
		</form:form>
	</div>
</div>